<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://config.com" prefix="config"%>
<%@ include file="/framePage/tags.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title><config:getConfigValue key="platformName"/></title>
<meta name="description" content="Dashboard" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%-- 导入头部--%>
<%@include file="/framePage/top.jsp"%>
<script type="text/javascript">
$(function() {
	//检测是否登录
    function checkLogin(callback) {
        var url = "login/checkLogin.do?tiemr=" + new Date().getTime();
        ajaxRequest(url, {}, function (data) {
            if (data.resCode != "200") {
                if(typeof(callback) === "function" ){
                    callback(data);
				}else{
                    alert(data.resMsg);
                    window.location.href = "switchView.do?viewPath=sysPage/login";
				}
            }
        }, function (XMLHttpRequest, textStatus, errorThrown) {
            ajaxError(errorThrown);
        }, "POST", "JSON");
    }

   // checkLogin();

	/*var checkLoginTimer=setInterval(function(){
	    if(!getTopWin().loginTimeOutDialog){
            checkLogin(function(data){
                showLoginDialog();
            });
		}
	},10000)*/

	//默认主题样式 deepblue.min
	if(!readCookie("current-skin")){
        setTheme("<config:getConfigValue  key='platformDefaultTheme'/>");
	}
});
</script>
</head>
<body>
	<%--导入头部导航栏--%>
	<%@include file="/framePage/navbar.jsp"%>
	<%--导入主体容器--%>
	<%@include file="/framePage/mainContainer.jsp"%>
	<%-- 导入页脚--%>
	<%@include file="/framePage/footer.jsp"%>
</body>
</html>
